<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/InformationInput.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/InformationInput.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '会员激活',
        name: 'InformationInput',
        url: '/InformationInput/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { cardno: '', create_time: '', ident: '', name: '', phone: '', sex: '', auditStatus: '' },
      searchFormOptions: [
        [
          { title: '姓名', field: 'name', type: 'like' },
          { title: '电话', field: 'phone', type: 'like' },
          { title: '审核状态', field: 'auditStatus', type: 'select', dataKey: 'audit' },
        ],
        [
          { title: '证件', field: 'ident', type: 'like' },
          { title: '会员卡号', field: 'cardno', type: 'like' },
          { title: '提交时间', field: 'create_time', type: 'datetime' },
        ],
      ],
      columns: [
        { field: 'cardno', title: '会员卡号', hidden: true, type: 'string', width: 220, align: 'left', sortable: true },
        { field: 'cardType', title: '证件类型', hidden: true, type: 'int', width: 90, align: 'left' },
        { field: 'image', title: '证书图片', type: 'img', width: 220, align: 'left' },
        { field: 'cardnoImg', title: '会员卡号图片', type: 'img', width: 220, align: 'left' },
        { field: 'create_time', title: '提交时间', type: 'datetime', width: 150, align: 'left', sortable: true },
        { field: 'id', title: 'id', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'ident', title: '证件号', hidden: true, type: 'string', width: 220, align: 'left' },
        { field: 'name', title: '姓名', hidden: true, type: 'string', width: 220, align: 'left' },
        { field: 'phone', title: '电话', hidden: true, type: 'string', width: 220, align: 'left' },
        { field: 'sex', title: '性别', hidden: true, type: 'int', width: 90, align: 'left' },
        { field: 'status', title: ' 状态 ', hidden: true, type: 'int', width: 90, align: 'left' },
        { field: 'update_time', title: 'update_time', hidden: true, type: 'datetime', width: 90, align: 'left', sortable: true },
        { field: 'auditDate', title: '审核日期', type: 'datetime', width: 120, align: 'left', sortable: true },
        { field: 'auditId', title: '审核员', type: 'int', width: 120, align: 'left', hidden: true },
        { field: 'auditor', title: '审核员', type: 'string', width: 120, align: 'left' },
        { field: 'auditreason', title: '审核原因', type: 'string', width: 120, align: 'left' },
        { field: 'auditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] }, width: 100, require: true, align: 'left' },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
